package cn.jingyuan.owl.utils.core.comparator;

import cn.jingyuan.owl.utils.core.StringUtils;
import cn.jingyuan.owl.utils.core.exceptions.ExceptionUtils;

/**
 * 比较异常
 */
public class ComparatorException extends RuntimeException {

    public ComparatorException(Throwable e) {
        super(ExceptionUtils.getMessage(e), e);
    }

    public ComparatorException(String message) {
        super(message);
    }

    public ComparatorException(String messageTemplate, Object... params) {
        super(StringUtils.format(messageTemplate, params));
    }

    public ComparatorException(String message, Throwable throwable) {
        super(message, throwable);
    }

    public ComparatorException(Throwable throwable, String messageTemplate, Object... params) {
        super(StringUtils.format(messageTemplate, params), throwable);
    }

}
